<div class="row m-n">
    <div tabset type="tab">
        <div tab heading="条码维护" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列" ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="零件编号" ng-model="condition.materialsNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">零件编号：</label>
                        <input type="text" class="form-control" ng-model="condition.materialsNo">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">多零件编号：</label>
                        <textarea class="form-control" placeholder="逗号分隔或者换行分隔" ng-model="condition.zhanwei" ng-blur="handleBlur($event)"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">条码：</label>
                        <input type="text" class="form-control col-xs-8" ng-model="condition.barcode">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">条码类型：</label>
                        <select class="form-control" ng-model="condition.barcodeFlag">
                            <option value="">请选择</option>
                            <option value="0">总条码</option>
                            <option value="1">分条码</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true" has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item.barcode)">编辑</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="main-area d-t-35 d-b-60">
                <form class="main-wrap form-horizontal single-col p-t clearfix">
                    <div class="form-group">
                        <label class="col-xs-2 control-label">零件编号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.materialsNo" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">零件中文名：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.materialsDes" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">状态：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.statusDesc" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">条码：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.barcode" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">条码类型：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.barcodeFlagShow" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">条码描述：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.barcodeDesc" maxlength="20" placeholder="请输入条码描述">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">规格描述：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.model" maxlength="20" placeholder="请输入规格描述">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">VIN码：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.vinid" maxlength="20" placeholder="请输入VIN码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">图号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.orawyd" maxlength="20" placeholder="请输入图号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">批次号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.batchId" maxlength="20" placeholder="请输入批次号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">供货商代码：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.splirid" select-obj="selectSupplier()"
                            clear-form="clearSupplier()" tips-name="供货商"></div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 wrapper-none">
                            <button type="button" class="btn btn-primary m-r-sm" ng-click="updateData()">保存</button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>